package com.zb.mapper;
import com.zb.entity.Product;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;

@Mapper
public interface ProductMapper {

	public Product getProductById(@Param(value = "id") Long id)throws Exception;

	public List<Product>	getProductListByMap(Map<String,Object> param)throws Exception;

	public Integer getProductCountByMap(Map<String,Object> param)throws Exception;

	public Integer insertProduct(Product product)throws Exception;

	public Integer updateProduct(Product product)throws Exception;

	public Integer deleteProductById(@Param(value = "id") Long id)throws Exception;

	public Integer batchDeleteProduct(Map<String,List<String>> params);

}
